package learn.spring.init.service;

import learn.spring.init.annotation.Component;
import learn.spring.init.postprocessor.BeanPostProcessor;

/**
 * @author ShenHao
 */
@Component("sHBeanPostProcessor")
public class SHBeanPostProcessor implements BeanPostProcessor {
    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName) {
        System.out.println("初始化前");
        return bean;
    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) {
        System.out.println("初始化后");
        return bean;
    }
}
